import type { ISearchConfig } from '@/components/type'

const searchConfig: ISearchConfig = {
  pageName: 'userSearch',

  formItems: [
    {
      type: 'input',
      label: '用户名',
      prop: 'username',
      placeholder: '请输入用户名',
      isClearable: true
    },
    {
      type: 'input',
      label: '真实姓名',
      prop: 'realname',
      placeholder: '请输入真实姓名',
      isClearable: true
    },
    {
      type: 'input',
      label: '手机号码',
      prop: 'phone',
      placeholder: '请输入手机号'
    },
    {
      type: 'select',
      label: '状态',
      prop: 'status',
      placeholder: '请选择查询的状态',
      options: [
        {
          label: '启用',
          value: 1
        },
        {
          label: '禁用',
          value: 0
        }
      ]
    },
    {
      type: 'date-picker',
      label: '创建时间',
      prop: 'createAt'
    }
  ]
}

export default searchConfig
